home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nejlepší hry
/
Nejlepsi hry.iso
/
hry
/
sea of chaos
/
sea_install.msi
/
_15C39AAA7726369D39812BD40F01CF6A
/
_5B3D840B9F9444938D1515A9F19D8204
< prev
next >
Wrap
Text File
|
2004-11-13
|
468b
|
27 lines
//simple shader: combine color and texture sample
//Luke Lenhart
//(C)2004-2005 Digipen Institute of Technology
//cloud sampler
sampler2D sampTex;
//shader input
struct PS_INPUT
{
float4 Color : COLOR;
float2 Tex0 : TEXCOORD0;
};
//shader code
float4 PShader(PS_INPUT In) : COLOR
{
//sample textutes
float4 texclr=tex2D(sampTex,In.Tex0);
//blend with vert color
float4 clr=texclr*In.Color;
//spit out color
return clr;
}